apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
  name: core5g
spec:
  instances: 3

  # Example of rolling update strategy:
  # - unsupervised: automated update of the primary once all
  #                 replicas have been upgraded (default)
  # - supervised: requires manual supervision to perform
  #               the switchover of the primary
  primaryUpdateStrategy: unsupervised

  # Require 1Gi of space
  storage:
    size: 1Gi
  postgresql:
    parameters:
      shared_buffers: "128MB"

  resources:
    requests:
      memory: "512Mi"
      hugepages-1Gi: "1Gi"
    limits:
      hugepages-1Gi: "1Gi"
  bootstrap:
    initdb:
      database: open5gs
      owner: app
